import request from "/@/utils/request"

export function fetchPN(query?: Object) {
  return request({
    url: '/bzg/wzPhotoNews/page',
    method: 'get',
    params: query
  })
}

export function addPN(obj?: Object) {
  return request({
    url: '/bzg/wzPhotoNews',
    method: 'post',
    data: obj
  })
}

export function getPN(id?: string) {
  return request({
    url: '/bzg/wzPhotoNews/' + id,
    method: 'get'
  })
}

export function delPNs(ids?: Object) {
  return request({
    url: '/bzg/wzPhotoNews',
    method: 'delete',
    data: ids
  })
}

export function putPN(obj?: Object) {
  return request({
    url: '/bzg/wzPhotoNews',
    method: 'put',
    data: obj
  })
}

